package cn.eud360.xiangmu.dmp.beans

class YinShiStr(str: String) {
  def toIntx: Int = {
    try {
      str.toInt
    } catch {
      case _: Exception => 0
    }
  }


  def toDoublex: Double = {
    try {
      str.toDouble
    } catch {
      case _: Exception => 0.0
    }
  }
}


object YinShiStr {
  implicit def str2YinShiStr(str: String) = new YinShiStr(str)
}